package com.xajh.duoduo.abs;

import com.xajh.duoduo.environment.Environment;
import com.xajh.duoduo.interfac.GlobleIdGenerator;
import com.xajh.duoduo.interfac.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.awt.*;

public abstract class AbsProcessor implements GlobleIdGenerator, Processor {
    protected Logger logger = LoggerFactory.getLogger(this.getClass().getName());
    protected String group;
    //用于切面日记记录
    protected String globleId ;
    private final Environment environment = Environment.getInstance();

    @Override
    public String generateGlobleId() {
        return environment.getPREX() + "#" + environment.getNAME_SPACE() + "#" +
                this.group + "#" + environment.getAccount() + "#" + environment.getArea();
    }
}
